<?php
//
// SITE MAIN SETUP FILE
//

////////////////////////////////////
// Database connection Conf

define('DB_ENGINE', 	'Mysql'); //supported Engines: Mysql
define("DB_HOSTNAME" ,	"localhost");
define("DB_PORT",		"3306");
define("DB_USER" , 		"root");
define("DB_PASSWORD", 	"1234");
define("DB_NAME",		"educabarrie");


////////////////////////////////////
// Site configuration constants
if(isset($_SERVER['HTTPS']))
	define('SITE_PROTOCOL', 'https');
else
	define('SITE_PROTOCOL', 'http');
define('SITE_HOST',	SITE_PROTOCOL.'://'.$_SERVER['HTTP_HOST']);  // solo HOST sin ('/')
define('SITE_URI',	'/');  // SITE_URI STARTS AND ENDS WITH SLASH ('/')
define('SITE_URL', SITE_HOST . SITE_URI);


// Default application user interface language (ES, GL, EN, ...)
define("DEFAULT_LANG","GL");


///////////////////////////////////
// SMTP server configuration

define("SMTP_HOST", "localhost");
define("SMTP_PORT", "25");
define("SMTP_AUTH", false);
define("SMTP_USER", "");
define("SMTP_PASS", "");

// Mail default sender and replyto
define('SYS_MAIL_FROM_NAME',	'Cogumelo Sender');
define('SYS_MAIL_FROM_EMAIL',	'cogumelo@cogumelo.org');


///////////////////////////////////
// Smarty config

define("TEMPLATE_DIR", 	SITE_PATH."Templates");
define("SMARTY_CONFIG",	SITE_PATH."Conf/smarty");
define("SMARTY_COMPILE",SITE_PATH."tmp/templates_c");
define("SMARTY_CACHE", 	SITE_PATH."tmp/cache");


///////////////////////////////////
// Log & Error Controller

// Define where logdata is stored (file, screen, mysql, ...)
define("LOGMODE","file");

// Define the file where the logdata is stored (if LOGMODE=file is selected)
define("LOGFILE", SITE_PATH."tmp/cogumelo.log");

// Define the log deep level (1 to 5)
define("LOGLEVEL", 5);

// Write errors to logfile
define("LOGERRORS", true);

// Set Debug mode to display errors on screen (only for development)
define("DEBUG", true);
